// const obj = {
//     name:'silly',
//     age:34
// }
// const obj1 = {
//     ...obj,
//     name:''
// }
// console.info(obj1)

function removeEmptyStrings(obj) {
        for (let key in obj) {
            if (obj[key] === '' || obj[key] === undefined) {
                delete obj[key];
            }
        }
        return obj
    }
    const obj = {
        name:'silly',
        age:'',
        score:undefined
    }
    console.log(removeEmptyStrings(obj))

